
<!--user login-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>网站内容管理系统</title>
 	<link rel="stylesheet" type="text/css" href="./Public/Css/logs.css">

    <load href="./Public/Js/jquery.min.js"/>
    <load href="./Public/Js/jquery.form.js"/>
    <load href="./Public/Js/my.js"/>
</head>

<body>

<div class="loginbox" >
		<!--logo标题 -->
		<div class="titlelogo">
			<div class="logo">IDVERT</div>
		</div>
		<!--logo标题 -->
		

		<!-- 登陆表单 -->
		<div class="formbox">
            <form method='post' name="login" id="form1" action="{:U('Login/doLogin')}">
			<div class="forminputs">
                <p id="regTest" class="result none"></p>
				<div><span>{:L('account')}：</span><input id="username" name='username' type="text" placeholder="{:L('account')}" required/> </div>
				<div><span>{:L('password')}：</span><input id="password" name='password' type="password" placeholder="{:L('password')}" required /></div>
                {if $admin_verify}
                <div>
                    <span>{:L('verify')}:</span><input name="verifyCode" class="inputbox" id="verifyCode"  size="6" value="" maxlength="4" />
                    <img src="{:U('Home/Index/verify')}" onclick="javascript:resetVerifyCode();" class="checkcode" align="absmiddle"  title="{:L('resetVerifyCode')}" id="verifyImage"/>
                </div>
                {/if}
            </div>

			<div class="actions">
				<input type="submit" id="submit" value="登录" />
			</div>
		 
			<div style="clear:both;"></div>
            </form>
 		</div>
 		<!-- 登陆表单 -->
</div>

<div class="common_footer">湖南艾瓦特网络科技有限公司-技术支持</div>
<img class="background" src="./Public/Images/7.jpg" />

<script language="JavaScript">

    jQuery(document).ready(function($){
        $('#form1').ajaxForm({
            beforeSend:function(){
                $('#regTest').html('<img src="./Public/Images/msg_loading.gif">').show();
            },
            success:       complete,
            dataType: 'json'
        });


    });
    function complete(data){
        if (data.status==1)
        {
            window.location.href = '{:U("Index/index")}';

        }else{
            $('#regTest').html(data.info).show();
        }
    }


</script>
</body>


</html>